package com.eastfair.builder;

import com.eastfair.builder.dto.BindBuilderServiceProviderRoleDTO;
import com.eastfair.builder.dto.RemoveBuilderServiceProviderRoleDTO;
import com.eastfair.core.base.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @Author lyw
 * @Date 2022/8/10 9:58
 */
@FeignClient(value = "builder/builderRegister")
public interface BuilderRegisterFeign {

    /**
     * 搭建商服务商绑定角色.
     *
     * @param bindBuilderServiceProviderRoleDTO
     * @return
     */
    @PostMapping("/bind/builderRole")
    R<Boolean> bindHomeServiceProviderRole(@RequestBody BindBuilderServiceProviderRoleDTO bindBuilderServiceProviderRoleDTO);


    /**
     * 搭建商服务商移除角色
     *
     * @param removeBuilderServiceProviderRoleDTOList
     * @return
     */
    @PostMapping("/remove/builderRole")
    R<Boolean> removeHomeServiceProviderRole(@RequestBody List<RemoveBuilderServiceProviderRoleDTO> removeBuilderServiceProviderRoleDTOList);
}
